package com.muyu.system.mapper;

import com.muyu.system.domain.DanmoMarketOrder;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 用户订单Mapper接口
 *
 * @author yangle
 * @date 2024-09-08
 */
public interface DanmoMarketOrderMapper
{
    /**
     * 查询用户订单
     *
     * @param id 用户订单主键
     * @return 用户订单
     */
    public DanmoMarketOrder selectDanmoMarketOrderById(@Param("id") Long id);

    /**
     * 查询用户订单列表
     *
     * @param danmoMarketOrder 用户订单
     * @return 用户订单集合
     */
    public List<DanmoMarketOrder> selectDanmoMarketOrderList(DanmoMarketOrder danmoMarketOrder);

    /**
     * 新增用户订单
     *
     * @param danmoMarketOrder 用户订单
     * @return 结果
     */
    public int insertDanmoMarketOrder(DanmoMarketOrder danmoMarketOrder);

    /**
     * 修改用户订单
     *
     * @param danmoMarketOrder 用户订单
     * @return 结果
     */
    public int updateDanmoMarketOrder(DanmoMarketOrder danmoMarketOrder);

    /**
     * 删除用户订单
     *
     * @param id 用户订单主键
     * @return 结果
     */
    public int deleteDanmoMarketOrderById(Long id);

    /**
     * 批量删除用户订单
     *
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteDanmoMarketOrderByIds(Long[] ids);

    DanmoMarketOrder selectSingleOrder(@Param("id") Long id);
//
//    @Insert("insert into danmo_market_order_details values order_id = #{id},product_id = #{}")
//    void insertDanmoMarketOrderDetails(DanmoMarketOrder danmoMarketOrder1);
}
